package com.work.captcha.facade;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-05-21
 * Time:21:56
 */
public class LightFacade {//灯的门面
    private Light bedRoomLight=new BedRoomLight();
    private Light hallLight=new HallLight();
    public void lightOn(){//开灯
        bedRoomLight.on();
        hallLight.on();
    }
    public void lightOff(){//关灯
        bedRoomLight.on();
        hallLight.off();
    }
}
